<template>
  <div>
    <template>
      <ms-block-tip>
        附件上传
      </ms-block-tip>
      <ms-upload multiple :limit="3" file-path="test1" :process-list="processList2">
        <el-button size="small" type="primary">点击上传</el-button>
      </ms-upload>
    </template>
    <template>
      <ms-block-tip>
        图片上传
      </ms-block-tip>
      <ms-upload multiple :limit="3" :process-list="processList" list-type="picture-card" file-path="picture" img>
        <el-button size="small" type="primary">点击上传</el-button>
      </ms-upload>
    </template>
  </div>
</template>

<script>
import MsBlockTip from '@/common/blockTip'
import MsUpload from './components'
import { getFileList } from '@/api/sys/auth'
export default {
  components: {
    MsUpload,
    MsBlockTip
  },
  mounted() {
    this.getFileLists()
  },
  data() {
    return {
      processList: [],
      processList2: [],
      removeIds: new Set(),
      fileList: new Set()
    }
  },
  methods: {
    getFileLists() {
      getFileList('123').then((res) => {
        this.processList = res.obj
      })
      getFileList('1234').then((res) => {
        this.processList2 = res.obj
      })
    }
  }
}
</script>
